package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.LeaveBeanMapper;
import com.billing.model.entity.TLeave;
import com.billing.service.LeaveService;
@Service
public class LeaveServiceImpl implements LeaveService{
	@Resource
	private LeaveBeanMapper leaveBeanMapper;
	public int insertTLeave(TLeave leave) {
		return leaveBeanMapper.insertTLeave(leave);
	}
	@Override
	public TLeave getTLeaveById(int id) {
		return leaveBeanMapper.getTLeaveById(id);
	}
	@Override
	public List<TLeave> getTLeaveList(long starttime, long endtime, int id) {
		return leaveBeanMapper.getTLeaveList(starttime, endtime, id);
	}

}
